package net.pinnoocle.playdao.entity.shopPc.coupon;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.pinnoocle.playdao.entity.group.UpdateGroup;

import javax.validation.constraints.NotNull;

/**
 * @author ye
 * @Description
 * @create 2021-10-28 18:37
 */
@Data
public class SaveCouponParams {

    @ApiModelProperty("优惠券id")
    @NotNull(message = "优惠券id不能为空",groups = UpdateGroup.class)
    private String couponId;

    @ApiModelProperty("优惠券名称")
    @NotNull(message = "优惠券名称不能为空")
    private String couponName;

    @ApiModelProperty("面值")
    @NotNull(message = "面值不能为空")
    private Double faceValue;

    @ApiModelProperty("满多少可用")
    @NotNull(message = "满多少可用不能为空")
    private Double fullValue;

    @ApiModelProperty("有效期开始日期(年-月-日)")
    @NotNull(message = "有效期开始时间不能为空")
    private String validStartDate;

    @ApiModelProperty("有效期结束日期(年-月-日)")
    @NotNull(message = "有效期结束时间不能为空")
    private String validEndDate;
}
